import { _decorator, Component, Node } from 'cc';
import GameInputOperator from './input/GameInputOperator';
const { ccclass, property } = _decorator;

@ccclass('TestView')
export class TestView extends Component {
    start() {
        GameInputOperator.getInstance().on('TestView', this)
    }
    onDestroy() {
        GameInputOperator.getInstance().off('TestView')
    }
    update(deltaTime: number) {

    }

    onButtonClick() {
        console.log('TestView  onButtonClick ')
        this.node.destroy();
    }
}

